function ajaxForm(object)
{
	if((object.form!=undefined)&&((typeof(object.form)=="object")||(get(object.form+"")!=undefined)))
	{
		var form=object.form;
		if(get(object.form+"")!=undefined){form=get(object.form+"");}
		var map=new Object();
		var ins=form.getElementsByTagName("input");
		var txts=form.getElementsByTagName("textarea");
		var sels=form.getElementsByTagName("select");
		var arr=new Array();
		for(var i=0;i<ins.length;i++)
		{
			arr.push(ins[i]);
		}
		for(var i=0;i<txts.length;i++)
		{
			arr.push(txts[i]);
		}
		for(var i=0;i<sels.length;i++)
		{
			arr.push(sels[i]);
		}
		for(var i=0;i<arr.length;i++)
		{
			var ele=arr[i];
			var value=ele.value;
			var type=ele.type;
			var name=ele.name;
			if(("checkbox" == type)||("radio" == type))
			{
				if(ele.checked)
				{
					if(map[name])
					{
						map[name]=map[name]+";"+value;
					}else
					{
						map[name]=value;
					}
				}
			}else
			{
				map[name]=value;
			}
		}//endfor
		var params="",count=0;
		for(var item in map)
		{
			if(count == 0)
			{
				params=item+"="+map[item];
			}else
			{
				params=params+"&"+item+"="+map[item];
			}
			count++;
		}
		if((object.params!=undefined)&&(object.params.length>0))
		{
			params=params+"&"+object.params;
		}
		object.params=encodeURI(encodeURI(params));
	}//endif
	//alert(object.params);
	ajax(object);
}

